//
//  HTNotificationCell.m
//  TruckUser
//
//  Created by Ting Han on 2017/11/10.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "HTNotificationCell.h"
@implementation HTNotificationModel

@end
@interface HTNotificationCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *iconLabel;
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *detialLabel;

@end


@implementation HTNotificationCell
- (void)setNotificationModel:(HTNotificationModel *)notificationModel{
    _notificationModel = notificationModel;
    self.detialLabel.text = notificationModel.content;
    self.timeLabel.text = notificationModel.create_at;
    if ([notificationModel.type isEqualToString:@"1"]) {
        self.iconLabel.text = @"运单消息";
        self.iconImageView.image = [UIImage imageNamed:@"icon_message"];
        
    }else{
        self.iconLabel.text = @"系统消息";
        self.iconImageView.image = [UIImage imageNamed:@"icon_notification"];
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end

